﻿using System;
namespace Pay.DTO {
	public class ltd_req {
		public ltd_req() {
			encrypt = "md5";
            timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            nonce = DtoHelper.RandCode(10);
        }
		public string timestamp { get; set; }
		public string nonce { get; set; }
		public string merchant_no { get; set; }
		public string method { get; set; }
		public string encrypt { get; set; }
		public string sign { get; set; }
	}

	public class ltd_merchant_register : ltd_req { 
		public ltd_merchant_register(){
			method = "pay.register";
		}
		public string openid { get; set; }
        public string bind_no { get; set; }
		public string fee { get; set; }
		public string settle { get; set; }
		public string account_name { get; set; }
		public string id_card { get; set; }
		public string account_no { get; set; }
		public string branch_code { get; set; }
		public string mobile { get; set; }
	}

	public class ltd_merchant_pay : ltd_req {
		public ltd_merchant_pay() {
			method = "pay.charge";
		}
		public string bind_no { get; set; }
		public string order_no { get; set; }
		public string tran_amount { get; set; }
		public string notify { get; set; }
		public string subject { get; set; }
		public string body { get; set; }
		public ltd_card_info extra { get; set; }
	}

    public class ltd_card_info {
        public string account_name { get; set; }
        public string account_no { get; set; }
        public string bank_code { get; set; }
        public string id_card { get; set; }
        public string mobile { get; set; }
        public string valid { get; set; }
        public string cvv2 { get; set; }
        public string fee { get; set; }
        public string settle_fee { get; set; }
        public string pay_fee_amount { get; set; }
    }

	public class ltd_merchant_query : ltd_req {
		public ltd_merchant_query() {
			method = "pay.query";
		}
		public string order_no { get; set; }
		public string pay_channel { get; set; }
	}

    public class ltd_merchant_reg_query : ltd_req {
        public ltd_merchant_reg_query() {
            method = "pay.queryregister";
        }
        public string bind_no { get; set; }
    }
}
